<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    @section('meta')
    <title>个人博客</title>
    <meta name="keywords" content="个人博客模板,博客模板" />
    <meta name="description" content="寻梦主题的个人博客模板，优雅、稳重、大气,低调。" />
    @show
    <link href="{{asset('resources/views/home/css/base.css')}}" rel="stylesheet">
    <link href="{{asset('resources/views/home/css/index.css')}}" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="{{asset('resources/views/home/js/modernizr.js')}}"></script>
    <![endif]-->
    @yield('resources')
</head>
<body>
<header>
    <div id="logo"><a href="{{url('/')}}"></a></div>
    <nav class="topnav" id="topnav">
        @foreach($nav as $n)
        <a href="{{$n->nav_url}}"><span>{{$n->nav_name}}</span><span class="en">{{$n->nav_alias}}</span></a>
        @endforeach
    </nav>

</header>

    @section('right')
    <aside class="right">
    @section('rnav') @show
        <!-- Baidu Button BEGIN -->
        <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare"><a class="bds_tsina"></a><a class="bds_qzone"></a><a class="bds_tqq"></a><a class="bds_renren"></a><span class="bds_more"></span><a class="shareCount"></a></div>
        <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6574585" ></script>
        <script type="text/javascript" id="bdshell_js"></script>
        <script type="text/javascript">
            document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
        </script>
        <!-- Baidu Button END -->

        <div class="weather" style="float:left"><iframe width="250" scrolling="no" height="60" frameborder="0" allowtransparency="true" src="http://i.tianqi.com/index.php?c=code&id=12&icon=1&num=1"></iframe></div>
        <div class="news">

            <h3>
                <p>最新<span>文章</span></p>
            </h3>
            <ul class="rank">
                @foreach($news as $n)
                <li><a href="{{url('art/'.$n->art_id)}}" title="{{$n->art_title}}" target="_blank">{{mb_strlen($n->art_title)>18 ? mb_substr($n->art_title,0,16) .'...' : $n->art_title}}</a></li>
                @endforeach
            </ul>
            <h3 class="ph">
                <p>点击<span>排行</span></p>
            </h3>
            <ul class="paih">
            @for($i=0;$i<5;++$i)
                @if(isset($hot[$i]))
                <li><a href="{{url('art/'.$hot[$i]->art_id)}}" title="{{$hot[$i]->art_title}}" target="_blank">{{mb_strlen($hot[$i]->art_title)>18 ? mb_substr($hot[$i]->art_title,0,16).'...' : $hot[$i]->art_title}}</a></li>
                @endif
             @endfor
            </ul>
            @section('links') @show
        </div>
    </aside>
    @show
</article>
<footer>
  {!!Config::get('webconfig.copyright')!!}
</footer>
<script src="{{asset('resources/views/home/js/silder.js')}}"></script>
</body>
</html>
